
    <form action="" method="POST" id="myform">
        {{csrf_field()}}
        <div class="box-body">
            <div class="form-group">
                <label>主队：</label>
                <select class="form-control" name="home">
                    @foreach($countrys as $country)
                        <option value="{{$country->id}}" @if($match->home == $country->id) selected @endif>
                            {{$country->name}}
                        </option>
                    @endforeach
                </select>
            </div>
            <span id="err_home" style="color:red"></span>
        </div>

        <div class="box-body">
            <div class="form-group">
                <label>客队：</label>
                <select class="form-control" name="away">
                    @foreach($countrys as $country)
                        <option value="{{$country->id}}" @if($match->away == $country->id) selected @endif>
                            {{$country->name}}
                        </option>
                    @endforeach
                </select>
            </div>
            <span id="err_away" style="color:red"></span>
        </div>

        <div class="box-body">
            <div class="form-group">
                <label>比赛级别：</label>
                <select class="form-control" name="level">
                    <option value="1" @if($match->level == 1) selected @endif>小组赛</option>
                    <option value="2" @if($match->level == 2) selected @endif>1/16决赛</option>
                    <option value="3" @if($match->level == 3) selected @endif>1/8决赛</option>
                    <option value="4" @if($match->level == 4) selected @endif>1/4决赛</option>
                    <option value="5" @if($match->level == 5) selected @endif>季军决赛</option>
                    <option value="6" @if($match->level == 6) selected @endif>冠军决赛</option>
                </select>
            </div>
            <span id="err_level" style="color:red"></span>
        </div>

        <div class="box-body">
            <div class="form-group">
                <label>比赛时间：</label>
                <input type="text" name="match_time" class="form-control" value="{{date('Y-m-d H:i:s', $match->match_time)}}">
            </div>
            <span id="err_match_time" style="color:red"></span>
        </div>

    </form>